/*******************************************************************************

    Copyright (C) Device VM Inc. All rights reserved.

    FileName:    GdiplusHelper.h
    CreateTime:  2009-08-18
    Description: Used to call GdiplusStartup() and GdiplusShutdown() automatically.

    Version history:



*******************************************************************************/

#ifndef __GDIPLUSHELPER_H_0AF3FE9F_B23A_4271_A339_B6774125777B__
#define __GDIPLUSHELPER_H_0AF3FE9F_B23A_4271_A339_B6774125777B__

#include <GdiPlus.h>
using namespace Gdiplus;

// Just put this file in the project.
// It will call GdiplusStartup() and GdiplusShutdown() in its ctor and dtor.

class GdiplusHelper
{
public:
    GdiplusHelper();
    ~GdiplusHelper();
protected:
    ULONG_PTR m_pulGdiplusToken;
};


#endif // #ifndef __GDIPLUSHELPER_H_0AF3FE9F_B23A_4271_A339_B6774125777B__
